package com.md.api.dao;

import com.md.api.entity.MotReservation;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface MotReservationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MotReservation record);

    List<MotReservation> selectAll();


    List<MotReservation> list(@Param("userId") String userId,@Param("siteId") String siteId, @Param("status") Integer status);

    void updateStatus(MotReservation reqOrder);

    MotReservation getByReservationNo(@Param("reservationNo")String reservationNo);
}